#include "base.h"

Base::Base()
{
     bounds = new QRectF(-75,-75,150,150);
}

void Base::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
           QWidget *widget)
{
    QColor* fontColor= new QColor(255,255,255);//white
    painter->setPen(fontColor->toRgb());
    painter->drawRect(boundingRect());
}

// Define the bounding rectangle of the object for collision detection
QRectF  Base::boundingRect() const
{
    return *bounds;
}

void Base::setBountdingRect(QRectF *rect){
    bounds = rect;
}
